/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HumanMotionSensor {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020025';
    }

    get categoryName() {
        return '\u4eba\u4f53\u79fb\u52a8\u4f20\u611f\u5668';
    }

    getAlarmCondition(params) {
        return command({
            method: 'getAlarmCondition',
            methodId: 'pkp1X0BI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmStatus(params) {
        return command({
            method: 'getAlarmStatus',
            methodId: 'pBTQg5Hn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'pghzWYm1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBuzzerSwitch(params) {
        return command({
            method: 'getBuzzerSwitch',
            methodId: 'ptRSbsoR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getExistDelayedTime(params) {
        return command({
            method: 'getExistDelayedTime',
            methodId: 'pdN73uiW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorSwitch(params) {
        return command({
            method: 'getIndicatorSwitch',
            methodId: 'phEq1D9o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNotExistDelayedTime(params) {
        return command({
            method: 'getNotExistDelayedTime',
            methodId: 'p3deL4tz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSensitivity(params) {
        return command({
            method: 'getSensitivity',
            methodId: 'pz93pK4E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSomeoneMoved(params) {
        return command({
            method: 'getSomeoneMoved',
            methodId: 'p0crQl89',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmCondition(params) {
        return command({
            method: 'setAlarmCondition',
            methodId: 'p1vFBb3q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'peHyqONV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBuzzerSwitch(params) {
        return command({
            method: 'setBuzzerSwitch',
            methodId: 'pUPQO37G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setExistDelayedTime(params) {
        return command({
            method: 'setExistDelayedTime',
            methodId: 'pZgRtGex',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorSwitch(params) {
        return command({
            method: 'setIndicatorSwitch',
            methodId: 'ppAXiVO3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setNotExistDelayedTime(params) {
        return command({
            method: 'setNotExistDelayedTime',
            methodId: 'pGox7xDb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSensitivity(params) {
        return command({
            method: 'setSensitivity',
            methodId: 'pDrhEqrk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HumanMotionSensor;
